<?php

      require_once 'util/TipoUsuarioEnum.php';
      $acl = Zend_Registry::get('acl');


      
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <title>:: Cantinho do Bolo ::</title>
    <meta charset="utf-8">

    <noscript>
        <meta http-equiv="Refresh" content="0; url=<?php echo $this->url (array('controller'=>'index','action'=>'noscript'));?>">
    </noscript>

    <link rel="stylesheet" href="/css/reset.css" type="text/css" media="screen">
    <link rel="stylesheet" href="/css/style.css" type="text/css" media="screen">
    <link rel="stylesheet" href="/css/layout.css" type="text/css" media="screen">
    
    <script src="/js/jquery-1.7.1.min.js" type="text/javascript"></script>
<!--    <script src="/js/cufon-yui.js" type="text/javascript"></script>-->
<!--    <script src="/js/cufon-replace.js" type="text/javascript"></script>-->
    <script src="/js/Dynalight_400.font.js" type="text/javascript"></script>
    <script src="/js/FF-cash.js" type="text/javascript"></script>
    <script src="/js/tms-0.3.js" type="text/javascript"></script>
    <script src="/js/tms_presets.js" type="text/javascript"></script>
    <script src="/js/jquery.easing.1.3.js" type="text/javascript"></script>
    <script src="/js/jquery.equalheights.js" type="text/javascript"></script>
    <script src="/js/languages/jquery.validationEngine-en.js" type="text/javascript" charset="iso-8859-1"></script>
    <script src="/js/jquery.validationEngine.js" type="text/javascript" charset="iso-8859-1"></script>
    <script type="text/javascript">
            $(window).load(function(){
                    jQuery("#form").validationEngine();
            });
    </script>

    <!--[if lt IE 8]>
    <div style=' clear: both; text-align:center; position: relative;'>
        <a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode">
        	<img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." />
        </a>
    </div>
	<![endif]-->
    <!--[if lt IE 9]>
   		<script type="text/javascript" src="js/html5.js"></script>
	<![endif]-->

  
</head>
<body>
	<!--==============================header=================================-->
    <header>
    	<div class="row-top">
        	<div class="main">
            	<div class="wrapper">
            			<div id="logo">
                            <img src="/images/cupcake.png" />
                            <logo><h1><a href="<?php echo $this->url(array('controller'=>'index', 'action'=>'index')) ;?>">Cantinho do<span> Bolo</span></a></h1></logo>
                        </div>
                     
                     <div id="opt">
                      
                      
                       <div id="boas_vindas">
                            <?php // print_r($_SESSION); ?>
                            <span style="font-size: 16px;color: #002D35;">Olá,
                                <?php if (!$_SESSION['Zend_Auth']['storage']):?>
                                  <?php $href = ($this->layout()->nav == "index")? '#sign_box' : $this->url(array ('controller'=>'index','action'=>'index'))."#sign_box"; ?>
                                  Visitante.  <a href="<?php echo $href; ?>" style="text-decoration: none;" class="button-3">Entrar</a>
                                <?php else:?>
                                    <?php echo $this->escape($_SESSION['Zend_Auth']['storage']->nome) ;?>.
                                    <form name="top" style="display: inline;" method="post" action="<?php echo $this->url (array ('controller'=>'index','action'=>'index')) ?>">
                                      <button class="button-4" name="bt_acesso" value="logout">Sair</button>
                                    </form>
                                <?php endif;?>
                             </span>
                       </div>
 					 
 					 
 					 	 <nav>
                        <ul class="menu">
                            <li><a class="<?php $class = ($this->layout()->nav == "index") ? active : ""; echo $class;?>" href="<?php echo $this->url(array('controller'=>'index','action'=>'index'));?>">início</a></li>
                            <li><a class="<?php $class = ($this->layout()->nav == "catalogo")?  active :  ""; echo $class; ?>" href="<?php echo $this->url(array('controller'=>'index','action'=>'catalogo'))."#mostrar_slide";?>">escolha o seu</a></li>
                           
                            <li><a class="<?php $class = ($this->layout()->nav == "contato")? active : ""; echo $class; ?>" href="<?php echo $this->url(array('controller'=>'index','action'=>'contato'));?>">fale conosco</a></li>
                        </ul>
                      </nav>
 					 
 					  
                      </div>
                        
                </div>
            </div>
        </div>
        
    </header>

	<!--==============================content================================-->
     <section id="content">
        <?php echo $this->layout()->content; ?>
     </section>
        <!--==============================footer=================================-->
    <footer>
        <div class="main">
        	<div class="aligncenter">
            	<span>Cantinho Do Bolo &copy; 2012</span>
                <a rel="nofollow" class="link" target="_blank" href="http://www.templatemonster.com/">Website Template</a> by TemplateMonster.com. Editado por @the_llano. 
            </div> 
        </div>
    </footer>
    
</body>
</html>
